package com.itheima.visitor;

/**
 * @author zzw
 * @date 2025/10/26
 * @description 访问者模式测试类
 */
public class Client {
    public static void main(String[] args) {
        Home home = new Home();
        home.add(new Dog());
        home.add(new Cat());

        Owner owner = new Owner();
        home.action(owner);

        System.out.println("======");

        Someone someone = new Someone();
        home.action(someone);
    }
}
